home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / prg_basi / n_b-v200.zip / NBV3 / DMO / VPRINT.DMO < prev   
Text File  |  1996-03-11  |  3KB  |  56 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   VPRINT  .DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20. $INCLUDE "DAS-NB01.INC"
  21. $INCLUDE "DAS-NB02.INC"
  22. $INCLUDE "DAS-NBV1.INC"
  23. $INCLUDE "DAS-NBV3.INC"
  24.  
  25. SCREEN 12
  26. GraphicSETUP
  27. COLOR 11
  28.  
  29. ? "┌───────────────────────────────────────────────────────────────────────
  30. ? "│ fVprint?  ( Row?, Col?, V$, Attr? )
  31. ? "│ fVprintM? ( Row?, Col?, V$, Attr? ) same as above but with Mouse OFF/ON
  32. ? "├─────────────────────────────────────────────────────────────────────────
  33. ? "│ Before going into all the cousins to this routine it is important to know
  34. ? "│ what is going on here as they all work the same with some added feature.
  35. ? "│ 1. the COLOR command has no effect and is not effected
  36. ? "│ 2. you cannot (are not allowed to) print past the end of the line
  37. ? "│ 3. you can change the color attribute in the middle of the string
  38. ? "│ 4. printing can be done using the current attribute(s) set with GCOLOR
  39. ? "│ 5. printing is done using fPutFBarr so it is always opaque
  40. ? "├─────────────────────────────────────────────────────────────────────────────
  41. ? "│ The 'trigger' to change attributes is CHR$(17) or ^PQ then CHR$(Attr?)
  42. ? "│ The test below changes from Attr? = 30 to Attr? = 31
  43. ? "└─────────────────────────────────────────────────────────────────────────────
  44.  
  45. IF NOT fVfontLoad%( "DMO\V-FONT.850" ) THEN
  46.   PRINT "CAN'T FIND THE FONT FILE"
  47.   END
  48. END IF
  49.  
  50. Text$ = " This is a test. "   : fVprint 17, 1, Text$, 30    ' yellow on blue
  51.                                 fVprint 18, 1, Text$,  0    ' use set attrs
  52. Text$ = " This is a test. " : fVprint 19, 1, Text$, 30    ' change attrs
  53.  
  54. fAnyKey
  55. CLS
  56. SCREEN 0